package com.example.myspring;

import org.springframework.beans.factory.FactoryBean;


public class A implements FactoryBean {
    //@Autowired
   // private B b;

    public void print(){
        System.out.println("a......");
    }

    @Override
    public Object getObject() throws Exception {
        System.out.println("A factory bean start....");
        return new A();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
